package com.swyc.osschat.Test.jiajiemi.aes;

import com.swyc.osschat.Common.Util.Decode.AESUtil;

/**
 * @description TODO
 * @Author: z156940l@outlook.com
 * @className Test
 * @Date: 2023/3/21 17:01
 */
public class Test {

    public static void main(String[] args) {
        String key = "1314";
        String str = "这是AES加密算法文字";
        String encryptStr = AESUtil.encrypt(str, key);
        System.out.println("加密后的文字：" + encryptStr);

        System.out.println("解密后的文字：" + AESUtil.decrypt(encryptStr, key));
    }
}
